import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/signature_entity.dart';

SignatureEntity $SignatureEntityFromJson(Map<String, dynamic> json) {
	final SignatureEntity signatureEntity = SignatureEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		signatureEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		signatureEntity.code = code;
	}
	final SignatureData? data = jsonConvert.convert<SignatureData>(json['data']);
	if (data != null) {
		signatureEntity.data = data;
	}
	return signatureEntity;
}

Map<String, dynamic> $SignatureEntityToJson(SignatureEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

SignatureData $SignatureDataFromJson(Map<String, dynamic> json) {
	final SignatureData signatureData = SignatureData();
	final int? signatureContractId = jsonConvert.convert<int>(json['signatureContractId']);
	if (signatureContractId != null) {
		signatureData.signatureContractId = signatureContractId;
	}
	final int? commodityId = jsonConvert.convert<int>(json['commodityId']);
	if (commodityId != null) {
		signatureData.commodityId = commodityId;
	}
	final int? skuId = jsonConvert.convert<int>(json['skuId']);
	if (skuId != null) {
		signatureData.skuId = skuId;
	}
	final String? contractContent = jsonConvert.convert<String>(json['contractContent']);
	if (contractContent != null) {
		signatureData.contractContent = contractContent;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		signatureData.createTime = createTime;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		signatureData.updateTime = updateTime;
	}
	return signatureData;
}

Map<String, dynamic> $SignatureDataToJson(SignatureData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['signatureContractId'] = entity.signatureContractId;
	data['commodityId'] = entity.commodityId;
	data['skuId'] = entity.skuId;
	data['contractContent'] = entity.contractContent;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	return data;
}